// 运维管理
import { getAction, deleteAction, putAction, postAction, httpAction } from '@/api/manage'

// 版本控制--新增
const addOperate = params => postAction('/sys/project_version/add', params)

// 版本控制--下载
const uploadVersion = params => getAction('/sys/project_version/upload_version', params)

// 版本控制--详情
const queryById = params => getAction('/sys/project_version/query_by_id', params)

// 版本控制--详情新增
const addVersion = params => postAction('/sys/project_version/add_version', params)

// 版本控制--详情删除
const addVersionDetailDelete = params => deleteAction('/sys/project_version/delete', params)

// 版本控制--详情编辑
const addVersionDetailEdit = params => putAction('/sys/project_version/edit', params)

// 版本控制--详情生效版本
const changeVersion = params => getAction('/sys/project_version/change_version', params)

export {
  addOperate,
  uploadVersion,
  queryById,
  addVersion,
  addVersionDetailDelete,
  addVersionDetailEdit,
  changeVersion
}
